import type { ProfileDetail } from '@/types/member'
import type { ProfileParams } from '@/types/profile'
import { http } from '@/utils/http'
/*
  获取用户信息
*/
export const getMemberProfile = () => {
  return http<ProfileDetail>({
    method: 'GET',
    url: '/member/profile',
  })
}
/**
 * 修改个人信息
 * @param data 请求体参数
 */
export const putMemberProfileAPI = (data: ProfileParams) => {
  return http<ProfileDetail>({
    method: 'POST',
    url: '/member/profile',
    data,
  })
}
